package com.sanctity.mapper;

import ch.qos.logback.core.util.InvocationGate;
import com.github.pagehelper.Page;
import com.sanctity.domain.Patient;
import com.sanctity.feign.param.patient.PatSaveParam;
import com.sanctity.feign.query.patient.PatientQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/***
 * @belongsProject spring-cloud
 * @description <TODO description class purpose>
 * @author Sanct
 * @version 1.0.0
 * @create 2024/2/3 11:36
 **/
@Repository
public interface PatientMapper {

    Integer insert(PatSaveParam param);

    Integer update(PatSaveParam param);

    Integer remove(Long id);

    Patient findById(Long id);

    List<Patient> findList(PatientQuery query);

    Page<Patient> findPage(PatientQuery query);

    Integer findTotal(PatientQuery query);
}
